package org.jsola.hr.web;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.jsola.core.Page;
import org.jsola.core.Result;
import org.jsola.hr.dto.AttendPunchDailySummaryAddDTO;
import org.jsola.hr.dto.AttendPunchDailySummaryUpdateDTO;
import org.jsola.hr.query.AttendPunchDailySummaryQuery;
import org.jsola.hr.vo.AttendPunchDailySummaryListVO;
import org.jsola.hr.vo.AttendPunchDailySummaryVO;

import java.util.List;

/**
 * @author zhr
 */
@Api(tags = "hr-考勤打卡日汇总")
public interface IAttendPunchDailySummaryControllerAPI {

    /**
     * 新增考勤打卡日汇总
     * @param attendPunchDailySummaryAddDTO 考勤打卡日汇总新增实体
     * @return 考勤打卡日汇总展示对象
     */
    @ApiOperation(value = "新增考勤打卡日汇总")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "attendPunchDailySummaryAddDTO", dataType = "AttendPunchDailySummaryAddDTO", value = "新增考勤打卡日汇总", paramType = "body")
    })
    Result<AttendPunchDailySummaryVO> save(AttendPunchDailySummaryAddDTO attendPunchDailySummaryAddDTO);


    /**
     * 修改考勤打卡日汇总
     * @param attendPunchDailySummaryUpdateDTO 考勤打卡日汇总
     * @return 更新数量
     */
    @ApiOperation(value = "修改考勤打卡日汇总")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "attendPunchDailySummaryUpdateDTO", dataType = "AttendPunchDailySummaryUpdateDTO", value = "修改考勤打卡日汇总", paramType = "body")
    })
    Result<Integer> update(AttendPunchDailySummaryUpdateDTO attendPunchDailySummaryUpdateDTO);




    /**
     * 删除单个考勤打卡日汇总，彻底删除
     * @param attendPunchDailySummaryId 考勤打卡日汇总id
     * @return 删除数量
     */
    @ApiOperation(value="删除单个考勤打卡日汇总，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "attendPunchDailySummaryId", dataType = "String", value = "考勤打卡日汇总id", paramType = "path")
    })
    Result<Integer> delete(String attendPunchDailySummaryId);


    /**
     * 批量删除考勤打卡日汇总，彻底删除
     * @param attendPunchDailySummaryIds 考勤打卡日汇总id集合
     * @return 删除数量
     */
    @ApiOperation(value = "批量删除考勤打卡日汇总，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "attendPunchDailySummaryIds", dataType = "String[]", value = "考勤打卡日汇总id数组", paramType = "body" ,allowMultiple = true)
    })
    Result<Integer> deleteBatch(String[] attendPunchDailySummaryIds);


    /**
     * 根据考勤打卡日汇总id查询考勤打卡日汇总详情
     * @param attendPunchDailySummaryId 考勤打卡日汇总id
     * @return 考勤打卡日汇总详情
     */
    @ApiOperation(value="根据考勤打卡日汇总id查询考勤打卡日汇总详情")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "attendPunchDailySummaryId", dataType = "String", value = "考勤打卡日汇总id", paramType = "path")
    })
    Result<AttendPunchDailySummaryVO> findById(String attendPunchDailySummaryId);


    /**
     * 查询考勤打卡日汇总
     * @param attendPunchDailySummaryQuery 考勤打卡日汇总查询参数
     * @return page
     */
    @ApiOperation(value="查询考勤打卡日汇总")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "attendPunchDailySummaryQuery", dataType = "AttendPunchDailySummaryQuery", value = "考勤打卡日汇总查询参数", paramType = "query")
    })
    Result<List<AttendPunchDailySummaryListVO>> listAll(AttendPunchDailySummaryQuery attendPunchDailySummaryQuery);


     /**
     * 分页查询考勤打卡日汇总
     * @param attendPunchDailySummaryQuery 考勤打卡日汇总查询参数
     * @return page
     */
    @ApiOperation(value="分页查询考勤打卡日汇总")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "attendPunchDailySummaryQuery", dataType = "AttendPunchDailySummaryQuery", value = "考勤打卡日汇总查询参数", paramType = "query")
    })
    Result<Page<AttendPunchDailySummaryListVO>> page(AttendPunchDailySummaryQuery attendPunchDailySummaryQuery);


}

